package com.itheima.mapper;

import com.itheima.dto.OrderUpdateDto;
import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrderMapper {
    List<Order> page(@Param("number") String number, @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("start") Integer start, @Param("pageSize") Integer pageSize);

    Order getOrderById(String id);

    long countOrder();

    int updateOrder(OrderUpdateDto orderUpdateDto);
}
